package com.kpx.app.adapter;

import android.content.Context;
import android.view.View;

import com.kpx.app.Application;
import com.kpx.app.R;
import com.kpx.app.activity.ActivityWebShow;
import com.kpx.app.adapter.baseadapter.BaseAdapter;
import com.kpx.app.adapter.baseadapter.ViewHolder;
import com.kpx.app.base.ActivityBase;
import com.kpx.app.bean.GirlItemData;
import com.kpx.app.bean.GrowthChildBean;
import com.kpx.app.http.HttpDataApi;
import com.kpx.app.http.HttpDataLoader;
import com.kpx.app.http.HttpDataReqUrl;
import com.kpx.app.http.ResObj;
import com.kpx.app.utils.ImageLoader;
import com.kpx.app.utils.MyHashMap;
import com.kpx.app.utils.uiutils.IntentUtil;
import com.kpx.app.utils.uiutils.ToastUtil;
import com.kpx.app.wigdet.ScaleImageView;

import java.util.List;


/**
 * Author: Othershe
 * Time: 2016/8/18 21:59
 */
public class GrowthItemAdapter extends BaseAdapter<GrowthChildBean.ChildsBean> {

    public GrowthItemAdapter(Context context, List<GrowthChildBean.ChildsBean> datas, boolean isOpenLoadMore) {
        super(context, datas, isOpenLoadMore);
    }

    @Override
    protected void convert(ViewHolder holder, final GrowthChildBean.ChildsBean girlItemData) {
        ScaleImageView imageView = holder.getView(R.id.girl_item_iv);
        ImageLoader.load(Application.mContext,girlItemData.getCoverPic(), imageView);
    }


    @Override
    protected int getItemLayoutId() {
        return R.layout.item_growth_layout;
    }
}
